package com.liangzhong.modules.Main.Mediator
{
	import com.liangzhong.events.AppEventDispatcher;
	import com.liangzhong.events.NotifierEvent;
	import com.liangzhong.mediator.BaseMediator;
	
	import flash.events.Event;
	
	import org.puremvc.as3.interfaces.INotification;
	
	/**
	 *特效效果 
	 * @author lake
	 * 
	 */	
	public class EffectMediator extends BaseMediator
	{
		/**
		 * MediatorName
		 */		
		public static const MediatorName :String = "EffectMediator";
		/**
		 *是否俱乐部有升级 
		 */		
		private var isClubUpGrade :Boolean = false;
		/**
		 *完成的任务列表 
		 */		
		private var ftaskList		:Array = [];
		
		public function EffectMediator(mediatorName:String=null, viewComponent:Object=null)
		{
			super(mediatorName, viewComponent);
		}
		/**
		 *添加事件 
		 * 
		 */		
		override public function addEventListeners():void
		{
			AppEventDispatcher.getInstance().addEventListener(NotifierEvent.CLUB_LV_CHANGE,onClubLevHandler);
		}
		/**
		 * 俱乐部升级
		 * @param e
		 * 
		 */		
		private function onClubLevHandler(e :Event):void
		{
			
		}
		/**
		 * 注册感兴趣的命令
		 * @return 
		 * 
		 */		
		override public function listNotificationInterests():Array
		{
			return [];
		}
		/**
		 * 捕获通知
		 * @param notification
		 * 
		 */		
		override public function handleNotification(notification:INotification):void
		{
			
		}
		/**
		 *依次播放动画 
		 */		
		private function showEffect():void
		{
			
		}
		/**
		 * 
		 * 注册进行时
		 */		
		override public function onRegister():void
		{
			addEventListeners();
			//setTimeout(clubLineUpEffect,3000);
			//setTimeout(delayTest,3000);
		}
		/**
		 *测试 
		 */		
		private function delayTest():void
		{
			//AnimationManager.addItem({func:leagueMatchEffect,data:{type:3}});
			//this.sendNotification(ApplicationConstants.Login_User_Get_Sign_Award,2);
			//this.sendNotification(ApplicationConstants.Login_User_Get_Sign_Award,3);
			//this.sendNotification(ApplicationConstants.Login_User_Get_Sign_Award,4);
		}
	}
}